<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Inflate a deflated string</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.gzinflate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gzinflate</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">gzinflate</span> &mdash; <span class="dc-title">Inflate a deflated string</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.gzinflate-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gzinflate</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$length</code><span class="initializer"> = 0</span></span>
  ] ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">   
   This function inflates a deflated string.  
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.gzinflate-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">data</code></dt>

     <dd>

      <p class="para">
       The data compressed by <span class="function"><a href="gzdeflate.html" class="function">gzdeflate()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">length</code></dt>

     <dd>

      <p class="para">
       The maximum length of data to decode.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.gzinflate-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The original uncompressed data or <strong><code>FALSE</code></strong> on error.
  </p>
  <p class="para">
   The function will return an error if the uncompressed data is more than
   32768 times the length of the compressed input <code class="parameter">data</code> 
   or more than the optional parameter <code class="parameter">length</code>.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.gzinflate-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-877">
    <p><strong>Example #1 <span class="function"><strong>gzinflate()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$compressed&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gzdeflate</span><span style="color: #007700">(</span><span style="color: #DD0000">'Compress&nbsp;me'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">9</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$uncompressed&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gzinflate</span><span style="color: #007700">(</span><span style="color: #0000BB">$compressed</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">$uncompressed</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.gzinflate-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="gzdeflate.html" class="function" rel="rdfs-seeAlso">gzdeflate()</a> - Deflate a string</span></li>
    <li class="member"><span class="function"><a href="gzcompress.html" class="function" rel="rdfs-seeAlso">gzcompress()</a> - Compress a string</span></li>
    <li class="member"><span class="function"><a href="gzuncompress.html" class="function" rel="rdfs-seeAlso">gzuncompress()</a> - Uncompress a compressed string</span></li>
    <li class="member"><span class="function"><a href="gzencode.html" class="function" rel="rdfs-seeAlso">gzencode()</a> - Create a gzip compressed string</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>